<?php

include('../Protocol/BDecode.php');
include('../Protocol/BEncode.php');

$tfile = BDecode(file_get_contents("Adde.torrent"));
$infohash = sha1(BEncode($tfile["info"]));
echo $infohash;

?>